package com.ttbj.interceptor;

import org.springframework.beans.factory.annotation.Autowired;
import com.ttbj.product.api.SalesmanFacade;
import com.ttbj.product.bean.dto.SalesmanDto;

/**
 * 验证token拦截器
 * 
 * @author Medivh
 */
public class SalesmanCheckInterceptor extends DefultCheckInterceptorApater {

	@Autowired
	SalesmanFacade salesmanFacade = null;

	@Override
	Object getUser(String token) throws Exception {
		return 	salesmanFacade.findSalesman(new SalesmanDto(token));
	}
}
